<div class="sidebar-collapse">
    <ul class="nav" id="side-menu">
        <li class="nav-header">
            <div class="dropdown profile-element">
                <span><img height="64px" alt="image" class="img-circle" src="/static/admin/img/logo.jpg" /></span>
                <a data-toggle="dropdown" class="dropdown-toggle" href="#">
                    <span class="clear">
                   <span class="block m-t-xs"><strong class="font-bold">{$admin['name']}</strong></span>
                    <span class="text-muted text-xs block">{$admin['auth_name']}<b class="caret"></b></span>
                    </span>
                </a>
                <ul class="dropdown-menu animated fadeInRight m-t-xs">
                   <!--  <li><a class="J_menuItem" href="form_avatar.html">修改头像</a>
                    </li>
                    <li><a class="J_menuItem" href="profile.html">个人资料</a>
                    </li>
                    <li><a class="J_menuItem" href="contacts.html">联系我们</a>
                    </li>
                    <li><a class="J_menuItem" href="mailbox.html">信箱</a>
                    </li>
                    <li class="divider"></li> -->
                    <li><a href="javascript:;" ng-click="showUpdatePwd()" access='AdminUpdatePwd'>修改密码</a></li>
                    <li><a href="{$host}/admin/login/logout">安全退出</a>
                    </li>
                </ul>
            </div>
            <div class="logo-element">H+
            </div>
        </li>
        <!-- <li>
            <a href="#">
                <i class="fa fa-home"></i>
                <span class="nav-label">主页</span>
                <span class="fa arrow"></span>
            </a>
            <ul class="nav nav-second-level">
                <li>
                    <a menu-path="/index/home/" access="HomePage">主页示例一</a>
                </li>
                <li>
                    <a menu-path="/index/home2/" access="HomePage2">主页示例二</a>
                </li>
                <li>
                    <a menu-path="/access/access_list/" access="AccessAccessList">权限列表</a>
                </li>
                <li>
                    <a class="J_menuItem" href="index_v4.html">主页示例四</a>
                </li>
            </ul>
        </li>
        <li>
        	<a menu-path="department/index/"><i class=""></i><span class="nav-lavel">组织架构</span></a>
        </li> -->
        {foreach $menu as $item}
        <li>
        	<a href="#" {if empty($item['children'])} menu-path="{$item['url']}/" {/if} access="{$item['key']}"><i class="{$item['menu_icon']}"></i><span class="nav-label">{$item['name']}</span>{if !empty($item['children'])}<span class="fa arrow"></span>{/if}</a>
        	{if !empty($item['children'])}
        	<ul class="nav nav-second-level">
        		{foreach $item['children'] as $child}
        		<li><a menu-path="{$child['url']}/" access="{$child['key']}">{$child['name']}</a></li>
        		{/foreach}
        	</ul>
        	{/if}
        </li>
        {/foreach}
    </ul>
</div>